import request from '@/utils/request'

//登录并且获取用户信息
export function userLogin(data: any) {
  return request({
    method: 'POST',
    url: '/auth/login',
    data
  })
}

//注册用户
export function registerUser(data: any) {
  return request({
    method: 'POST',
    url: '/user/create',
    data
  })
}

//获取用户信息
export function getUserInfoFn() {
  return request({
    method: 'GET',
    url: '/auth/getUserInfo',
  })
}